export interface IAccountType {
  name: string;
  password: string;
}
export interface IResultType<T = any> {
  code: number;
  data: T;
}
export interface ILoginDataType {
  id: number;
  name: string;
  token: string;
}
export interface IRoleType {
  id: number;
  name: string;
  intro: string;
  createAt: Date;
  updateAt: Date;
}

export interface IDepartmentType {
  id: number;
  name: string;
  parentId?: any;
  createAt: Date;
  updateAt: Date;
  leader: string;
}

export interface IUserType {
  id?: number;
  name?: string;
  realname?: string;
  cellphone?: number;
  enable?: number;
  createAt?: Date;
  updateAt?: Date;
  role?: IRoleType;
  department?: IDepartmentType;
}
